Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only close annotation form on focus loss when empty #4958

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Sep 12, 2023

This pull request improves the empty check to look at all form fields instead of only _annotationText.
Detecting changes in the form fields now also uses lit reactivity (Using watch), which makes sure the listen for close is always called when the form fields change. (independent of how they are changed)

  • Tests were added

Closes #4942

@jorg-vr jorg-vr added the bug Something isn't working label Sep 12, 2023
@jorg-vr jorg-vr self-assigned this Sep 12, 2023
@jorg-vr jorg-vr marked this pull request as ready for review September 12, 2023 08:20
@jorg-vr jorg-vr requested a review from a team as a code owner September 12, 2023 08:20
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team September 12, 2023 08:20
@jorg-vr jorg-vr merged commit 6d994f4 into main Sep 13, 2023
13 checks passed
@jorg-vr jorg-vr deleted the fix/annotation-form-close branch September 13, 2023 07:05
@jorg-vr jorg-vr temporarily deployed to naos September 13, 2023 07:11 — with GitHub Actions Inactive
@jorg-vr jorg-vr temporarily deployed to production September 13, 2023 07:16 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annotation form disappears when it loses focus, even if input has been entered
3 participants